import 'virtual:uno.css'
import './styles/index.scss'
import 'default-passive-events'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// import zhLocale from 'element-plus/es/locale/lang/zh-cn'
import { createApp } from 'vue'

// import eventBus from 'vue3-eventbus'
import * as echarts from 'echarts'

import App from './App.vue'
import router from './router'
const app = createApp(App)
app.config.globalProperties.$echarts = echarts

app.config.errorHandler = function (err, vm, info) {
    // 处理错误，例如记录日志
    console.error('Vue error:', err, info)
}

window.$EventBus = app.config.globalProperties.$eventBus

app.use(router)
app.use(ElementPlus,)
app.mount('#app')
